package com.googlecode.futurecode.xproject.util.encode;

public class XProjectShaPasswordEncoder extends MessageDigestPasswordEncoder {

    /**
     * Initializes the ShaPasswordEncoder for SHA-1 strength
     */
    public XProjectShaPasswordEncoder() {
        this(1);
    }

    /**
     * Initialize the ShaPasswordEncoder with a given SHA stength as supported by the JVM
     * EX: <code>ShaPasswordEncoder encoder = new ShaPasswordEncoder(256);</code> initializes with SHA-256
     *
     * @param strength EX: 1, 256, 384, 512
     */
    public XProjectShaPasswordEncoder(int strength) {
        super("SHA-" + strength);
    }
}
